import http from '@/utils/request.js';

// 保养整改申诉列表
export const getAppealQuestion = (data) => {
    return http.request({
        url: '/by/score/question/appeal/page',
        method: 'get',
        data
    });
};

// 保养整改问题详情
export const getAppealDetailList = (data) => {
    return http.request({
        url: '/by/score/question/appeal/detail/item',
        method: 'get',
        data,
    });
};

export const getAppealDetail = (data) => {
    return http.request({
        url: '/by/score/question/appeal/detail',
        method: 'get',
        data,
    });
};

// 提交申诉原因
export const submitAppealReason = (data) => {
    return http.request({
        url: '/by/score/question/appeal/submit/reason',
        method: 'post',
        data,
        textJson: true,
    });
};

// 工单申诉 提交审核
export const submitAppeal = (data) => {
    return http.request({
        url: '/by/score/question/appeal/submit',
        method: 'post',
        data,
        textJson: true,
    });
};

// 工单申诉 审核
export const submitAppealResult = (data) => {
    return http.request({
        url: '/by/score/question/appeal/submit/result',
        method: 'post',
        data,
        textJson: true,
    });
};

// 工单申诉 撤销审核
export const repealAppeal = (data) => {
    return http.request({
        url: '/by/score/question/appeal/repeal',
        method: 'post',
        data,
        textJson: true,
    });
};
